package com.atguigu.yygh.hosp.repository;

import com.atguigu.yygh.model.hosp.Schedule;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

@Repository
public interface ScheduleRepository extends MongoRepository<Schedule,String> {
    /**根据排班编号和医院编号查询**/
    Schedule getScheduleByHoscodeAndHosScheduleId(String hoscode , String hosScheduleId);

    /**删除排班根据**/
    Schedule getDepartmentByHoscodeAndDepcode(String hoscode, String depcode);

    /**通过医院编号、科室编号和工作日期查询详细排班信息**/
    List<Schedule> findScheduleByHoscodeAndDepcodeAndWorkDate(String hoscode, String depcode, Date toDate);
}
